package org.example.main;
import org.example.main.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.RelativeLayout.LayoutParams;

public class Bar extends Activity{
	ImageView iwbw;
	ImageView iwbg;
	LayoutParams parstartwhite;
	LayoutParams parstartgreen;
	int startgreen=15;
	 public void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
	        setContentView(R.layout.bar);
	        /*
	        iwbw=(ImageView) findViewById(R.id.barwhite);
	        iwbg=(ImageView) findViewById(R.id.bargreen);
	        Drawable white=getResources().getDrawable(R.drawable.btntoggleoff);
	        Drawable green=getResources().getDrawable(R.drawable.btntoggleon);
	        iwbw.setImageDrawable(white);
	        iwbg.setImageDrawable(green);
	        parstartwhite=new LayoutParams(30,30);
	        parstartgreen=new LayoutParams(30,15);
	        iwbg.setLayoutParams(parstartwhite);
	        iwbg.setLayoutParams(parstartgreen);
	        */
	        /*new Thread(new Runnable() {
	            public void run() {            	
	            	try {
	            		
	            		
	            		Thread t=new Thread();
	            		t.sleep(10000);// 10 secondi
	            	for(int i=1;i<20;i++){
	            		System.out.println("*********************************: "+i);
	            		t.sleep(100);
	            		
	            		
	            		//parstartgreen=new LayoutParams(30,i*10);
	            		//iwbg.setLayoutParams(parstartgreen);
	            	
	            	
	            	}
	            		
	            		
	            		System.out.println("************************END************************");
	    			 	//finish();
	            	} catch (InterruptedException e) {
	    				// TODO Auto-generated catch block
	    				e.printStackTrace();
	    			}  
	            	
	            	
	            }
	        }
	        ).start();
	        */
	        
		
	 }

	
}